home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Tool Chest / QuickDraw GX / QuickDraw GX Info / QuickDraw GX Interfaces / Interfaces & Libraries / interfaces / PrintingErrors.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-24  |  4.9 KB  |  104 lines  |  [TEXT/MPS ]

  1. /* ------------------------------------------------------------------------------
  2. FILENAME
  3.     PrintingErrors.h
  4.  
  5. DESCRIPTION
  6.         This file defines all the public result codes for the Printing Manager.
  7.     
  8. COPYRIGHT
  9.      © Apple Computer, Inc. 1990-1991
  10.      All rights reserved. 
  11.     
  12. -------------------------------------------------------------------------------- */
  13.  
  14. #ifndef __PRINTINGERRORS__
  15. #define __PRINTINGERRORS__
  16.  
  17. #define gxPrintingResultBase        -510
  18.  
  19. enum {
  20.  
  21. //  RESULT CODES FOR I/O
  22.  
  23.     gxAioTimeout             = gxPrintingResultBase,                // -510 : Timeout condition occurred during op.
  24.     gxAioBadRqstState         = (gxPrintingResultBase - 1),        // -511 : Async I/O request in invalid state for op.
  25.     gxAioBadConn             = (gxPrintingResultBase - 2),        // -512 : Invalid aio connection refnum
  26.     gxAioInvalidXfer         = (gxPrintingResultBase - 3),        // -513 : Read DataXferStruc contained bad values
  27.     gxAioNoRqstBlks             = (gxPrintingResultBase - 4),        // -514 : No available request blocks to process request
  28.     gxAioNoDataXfer             = (gxPrintingResultBase - 5),        // -515 : DataXferStruc pointer not specified
  29.     gxAioTooManyAutos         = (gxPrintingResultBase - 6),        // -516 : Auto status request already active
  30.     gxAioNoAutoStat             = (gxPrintingResultBase - 7),        // -517 : Connection not configured for auto status
  31.     gxAioBadRqstID             = (gxPrintingResultBase - 8),        // -518 : Invalid I/O request identifier
  32.     gxAioCantKill             = (gxPrintingResultBase - 9),        // -519 : Comm. protocol doesn't support I/O term.
  33.     gxAioAlreadyExists         = (gxPrintingResultBase - 10),        // -520 : Protocol spec. data already specified
  34.     gxAioCantFind             = (gxPrintingResultBase - 11),        // -521 : Protocol spec. data does not exist
  35.     gxAioDeviceDisconn         = (gxPrintingResultBase - 12),        // -522 : Machine disconnected from printer
  36.     gxAioNotImplemented         = (gxPrintingResultBase - 13),        // -523 : Function not implemented
  37.     gxAioOpenPending         = (gxPrintingResultBase - 14),        // -524 : Opening a connection for protocol, but another open pending
  38.     gxAioNoProtocolData          = (gxPrintingResultBase - 15),        // -525 : No protocol specific data specified in request
  39.     gxAioRqstKilled              = (gxPrintingResultBase - 16),        // -526 : I/O request was terminated
  40.     gxBadBaudRate             = (gxPrintingResultBase - 17),        // -527 : Invalid baud rate specified
  41.     gxBadParity                 = (gxPrintingResultBase - 18),        // -528 : Invalid parity specified
  42.     gxBadStopBits             = (gxPrintingResultBase - 19),        // -529 : Invalid stop bits specified
  43.     gxBadDataBits             = (gxPrintingResultBase - 20),        // -530 : Invalid data bits specified
  44.     gxBadPrinterName         = (gxPrintingResultBase - 21),        // -531 : Bad printer name specified
  45.     gxAioBadMsgType             = (gxPrintingResultBase - 22),        // -532 : Bad masType field in xferInfo struc
  46.     gxAioCantFindDevice         = (gxPrintingResultBase - 23),        // -533 : Cannot locate target device
  47.     gxAioOutOfSeq             = (gxPrintingResultBase - 24),        // -534 : Non-atomic SCSI requests submitted out of sequence
  48.  
  49.     gxPrIOAbortErr             = (gxPrintingResultBase - 25),        // -535
  50.     gxPrUserAbortErr         = (gxPrintingResultBase - 26),        // -536
  51.  
  52.  
  53. //  RESULT CODES FOR THE DIALOGS
  54.  
  55.     gxCantAddPanelsNowErr         = (gxPrintingResultBase - 27),    // -537 : panels can only be added during driver switch or before dialog is initiated
  56.     gxBadxdtlKeyErr                  = (gxPrintingResultBase - 28),    // -538 : unknown key for xdtl - must be radiobutton, etc
  57.     gxXdtlItemOutOfRangeErr          = (gxPrintingResultBase - 29),    // -539 : referenced item does not belong to panel
  58.     gxNoActionButtonErr           = (gxPrintingResultBase - 30),    // -540 : action button is nil
  59.     gxTitlesTooLongErr              = (gxPrintingResultBase - 31),    // -541 : length of buttons exceeds alert maximum width
  60.     gxUnknownAlertVersionErr      = (gxPrintingResultBase - 32),    // -542 : bad version for cool alerts
  61.  
  62.  
  63. // RESULT CODES FOR BUFFERING
  64.  
  65.     gxGBBufferTooSmallErr        = (gxPrintingResultBase - 33),    // -543
  66.  
  67.  
  68. // RESULT CODES FOR VECTOR IMAGING
  69.  
  70.     gxInvalidPenTable            = (gxPrintingResultBase - 34),        // -544
  71.  
  72.  
  73. // RESULT CODES FOR PRINT FILES
  74.  
  75.     gxIncompletePrintFileErr     = (gxPrintingResultBase - 35),    // -545
  76.     gxCrashedPrintFileErr         = (gxPrintingResultBase - 36),    // -546
  77.     gxInvalidPrintFileVersion     = (gxPrintingResultBase - 37),    // -547
  78.  
  79.  
  80. // MISCELLANEOUS RESULT CODES FROM THE API
  81.  
  82.     gxSegmentLoadFailedErr        = (gxPrintingResultBase - 38),    // -548
  83.     gxExtensionNotFoundErr        = (gxPrintingResultBase - 39),    // -549
  84.     gxDriverVersionErr            = (gxPrintingResultBase - 40),    // -550
  85.     gxImagingSystemVersionErr    = (gxPrintingResultBase - 41),    // -551
  86.     gxFlattenVersionTooNew      = (gxPrintingResultBase - 42),    // -552
  87.     gxPaperTypeNotFound         = (gxPrintingResultBase - 43),    // -553
  88.     gxNoSuchPTGroup                = (gxPrintingResultBase - 44),    // -554
  89.     
  90.  
  91. // OTHER ERRORS
  92.  
  93.     gxNotEnoughPrinterMemory =     (gxPrintingResultBase - 45),     // -555 : Printer does not have enough mem for fonts in document.
  94.  
  95. // TO BE REMOVED...
  96.  
  97.     gxDuplicatePanelNameErr         = (gxPrintingResultBase - 46)    // -556 : panel name is not unique on add
  98.  
  99.     
  100. };
  101.  
  102.  
  103. #endif
  104.